import Layout from '../layout'
import Empty from '../layout/empty'

const venRoutes = [
  {
    path: '/ven/venue',
    component: Layout,
    redirect: 'noRedirect',
    meta: { title: '场地管理' },
    children: [
      {
        path: 'pricing',
        component: Empty,
        meta: { title: '定价设置', activeMenu: '/ven/venue/pricing' },
        children: [
          {
            path: 'priceFullcalendar/:siteId',
            name: 'PriceFullcalendar',
            component: () => import('../views/ven/venue/pricing/priceFullcalendar'),
            meta: { title: '关联定价模板' }
          }
        ]
      },
      {
        path: 'priceTemplate',
        name: 'PriceTemplate',
        component: () => import('../views/ven/venue/pricing/template'),
        meta: { title: '定价模板', activeMenu: '/ven/venue/pricing' }
      },
      {
        path: 'priceHoliday',
        name: 'hoildayTemplate',
        component: () => import('../views/ven/venue/pricing/holiday'),
        meta: { title: '节假日模板', activeMenu: '/ven/venue/pricing' }
      }
    ]
  },
  {
    path: '/train',
    component: Layout,
    redirect: 'noRedirect',
    meta: { title: '培训管理' },
    children: [
      {
        path: 'verity',
        component: Empty,
        meta: {title: '报名人员审核', activeMenu: '/train/verity'},
        children: [
          {
            path: 'personVerity/:trainId',
            name: 'personVerity',
            component: () => import('../views/train/verity/personVerity'),
            meta: {title: '报名人员审核'}
          },
          {
            path: 'addPerson/:trainId',
            name: 'addPerson',
            component: () => import('../views/train/verity/personVerity/addPerson'),
            meta: {title: '新增报名人员'}
          },
          {
            path: 'addTrainList/:trainId/:userId',
            name: 'addTrainList',
            component: () => import('../views/train/verity/components/addTrainList'),
            meta: {title: '培训信息'}
          }
        ]
      }
    ]
  }
]

export default venRoutes
